# -*- coding: utf-8 -*-
# @Time : 2023/11/28 9:51 PM 
# @Author : Wayne
# @Email : 1
# @File : many_dic.py
# @Project : young_python_demo
# @DESCRIPTION : 多层字典相关获取数据遍历


"""
此字典的key没有规矩科研才使用此方案
"""

data = {
  "76": {
    "15363081404": {
      "spec_value_id": "932",
      "prop_id": 76,
      "spec_goods_images": [
        "http://www.bikeee.cn/images/goods/20180907/854719b9f5322e99.jpg"
      ],
      "spec_type": "text",
      "spec_value": "红色"
    },
    "15363081415": {
      "spec_value_id": "931",
      "prop_id": 76,
      "spec_goods_images": [
        "http://www.bikeee.cn/images/goods/20180907/b51dd841b1bedb3f.jpg"
      ],
      "spec_type": "text",
      "spec_value": "钛"
    }
  }
}

# 一层层获取字典
for key, value in data.items():
    for k2 ,v2 in value.items():
        # 还可以继续v3分，只是我们可能需要获取数据
        print(v2['spec_value'])